import { defineStore } from "pinia";
import { getFis } from "@/api/fis"
import { ref } from "vue";
export const usejisstore = defineStore('jis', () => {

  const tableData = ref()
  // 获取数据
  const PartType = async () => {
    let res = await getFis()
    tableData.value = res.data
    console.log(res, '----------');

    // 用于补满行数
    // while (tableData.value.length < 3) {
    //   tableData.value.push({
    //     name: '',
    //     carCapacity: '',
    //     equipmentCapacity: ''
    //   });
    // }
  }
  return {
    tableData, PartType
  }
})